<div data-errors="<?php echo json_encode($errors)?>">
	<?php echo $params['label'] ?>
	<?php foreach($params['options'] as $optionValue => $optionTitle) { ?>
		<div>
			<label>
				<input
					type="radio" 
					name="<?php echo $name ?>"
					value="<?php echo $this->txt2attr($optionValue) ?>"
					<?php echo ($value == $optionValue) ? 'checked' : ''; ?>
					><?php echo $this->txt2html($optionTitle)?>
			</label>
		</div>
	<?php } ?>
</div>